home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9105 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  724 b 

  1. Path: news1.sunbelt.net!usenet
  2. From: kberry@safefed.org (Kevin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Help with converting string to float, please!!!
  5. Date: 28 Feb 1996 16:35:33 GMT
  6. Organization: SAFE
  7. Message-ID: <4h208l$aja@news1.sunbelt.net>
  8. NNTP-Posting-Host: dp2.safefed.org
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=US-ASCII
  11. X-Newsreader: WinVN 0.99.7
  12.  
  13. I need to parse up a string and perform calculations on the variables.
  14.  
  15. take this string char *Query="APR=8.9&TERM=5&AMOUNT=10000"
  16.  
  17. How would I parse it up and take out the numbers so I can use them in floating 
  18. point calculations?
  19. Then I need to put them back in a string for output.
  20.  
  21. Any help would be greatly appreciated.
  22.  
  23. Thanks,
  24. Kevin
  25. kberry@safefed.org
  26.  
  27.